package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;

import java.time.LocalDateTime;
import java.util.List;

public interface IMemberReservationService extends IService<Reservation> {
    /**
     * 获取取消预约数量
     *
     * @return
     */
     Integer getCancelledReservationCount();

    /**
     * 取消预约
     *
     * @param id
     */
     void cancelReservation(Long id);

     /**
     * 分页查询预约信息
     *
     * @param status
     * @return
     */
    List<Reservation> selectByPage(Integer status);

    /**
     * 新增预约信息
     *
     * @param reservation
     */
    void add(Reservation reservation);

    /**
     * 根据时间段查询预约数量
     *
     * @param time
     * @return
     */
    Integer countByTime(Long time);
}
